all:backdoor.so myser

myser:myser.c
	gcc $^ -o $@

backdoor.so:backdoor.c
	gcc -fPIC -shared $^ -o $@ -ldl

run:
	LD_PRELOAD=./backdoor.so  ./myser

.PHONY: clean
clean:
	rm -rf ./myser
	rm -rf ./backdoor.so
